package com.zhilei;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@Slf4j
@SpringBootApplication(scanBasePackages = "com.zhilei")
@MapperScan(basePackages = "com.zhilei.mapper")
@EnableDiscoveryClient   // TODO 开启服务注册跟发现
@EnableFeignClients("com.zhilei.feign")   // TODO 开启远程调用
public class CompanyApplication {
    public static void main(String[] args) {
        SpringApplication.run(CompanyApplication.class, args);
        log.info("企业服务启动成功");
    }
}
